home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / perl5 / ExtUtils::MM_Unix.z / ExtUtils::MM_Unix
Encoding:
Text File  |  1998-10-30  |  16.4 KB  |  529 lines

  1.  
  2.  
  3.  
  4. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ExtUtils::MM_Unix - methods used by ExtUtils::MakeMaker
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      require ExtUtils::MM_Unix;
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      The methods provided by this package are designed to be used in
  16.      conjunction with ExtUtils::MakeMaker. When MakeMaker writes a Makefile,
  17.      it creates one or more objects that inherit their methods from a package
  18.      MM. MM itself doesn't provide any methods, but it ISA ExtUtils::MM_Unix
  19.      class. The inheritance tree of MM lets operating specific packages take
  20.      the responsibility for all the methods provided by MM_Unix. We are trying
  21.      to reduce the number of the necessary overrides by defining rather
  22.      primitive operations within ExtUtils::MM_Unix.
  23.  
  24.      If you are going to write a platform specific MM package, please try to
  25.      limit the necessary overrides to primitive methods, and if it is not
  26.      possible to do so, let's work out how to achieve that gain.
  27.  
  28.      If you are overriding any of these methods in your Makefile.PL (in the MY
  29.      class), please report that to the makemaker mailing list. We are trying
  30.      to minimize the necessary method overrides and switch to data driven
  31.      Makefile.PLs wherever possible. In the long run less methods will be
  32.      overridable via the MY class.
  33.  
  34. MMMMEEEETTTTHHHHOOOODDDDSSSS
  35.      The following description of methods is still under development. Please
  36.      refer to the code for not suitably documented sections and complain
  37.      loudly to the makemaker mailing list.
  38.  
  39.      Not all of the methods below are overridable in a Makefile.PL.
  40.      Overridable methods are marked as (o). All methods are overridable by a
  41.      platform specific MM_*.pm file (See the _E_x_t_U_t_i_l_s::_M_M__V_M_S manpage) and the
  42.      _E_x_t_U_t_i_l_s::_M_M__O_S_2 manpage).
  43.  
  44.      PPPPrrrreeeellllooooaaaaddddeeeedddd mmmmeeeetttthhhhooooddddssss
  45.  
  46.      canonpath
  47.        No physical check on the filesystem, but a logical cleanup of a path.
  48.        On UNIX eliminated successive slashes and successive "/.".
  49.  
  50.      catdir
  51.        Concatenate two or more directory names to form a complete path ending
  52.        with a directory. But remove the trailing slash from the resulting
  53.        string, because it doesn't look good, isn't necessary and confuses OS2.
  54.        Of course, if this is the root directory, don't cut off the trailing
  55.        slash :-)
  56.  
  57.      catfile
  58.        Concatenate one or more directory names and a filename to form a
  59.        complete path ending with a filename
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))
  71.  
  72.  
  73.  
  74.      curdir
  75.        Returns a string representing of the current directory.  "." on UNIX.
  76.  
  77.      rootdir
  78.        Returns a string representing of the root directory.  "/" on UNIX.
  79.  
  80.      updir
  81.        Returns a string representing of the parent directory.  ".." on UNIX.
  82.  
  83.      SSSSeeeellllffffLLLLooooaaaaddddeeeedddd mmmmeeeetttthhhhooooddddssss
  84.  
  85.      c_o (o)
  86.        Defines the suffix rules to compile different flavors of C files to
  87.        object files.
  88.  
  89.      cflags (o)
  90.        Does very much the same as the cflags script in the perl distribution.
  91.        It doesn't return the whole compiler command line, but initializes all
  92.        of its parts. The const_cccmd method then actually returns the
  93.        definition of the CCCMD macro which uses these parts.
  94.  
  95.      clean (o)
  96.        Defines the clean target.
  97.  
  98.      const_cccmd (o)
  99.        Returns the full compiler call for C programs and stores the definition
  100.        in CONST_CCCMD.
  101.  
  102.      const_config (o)
  103.        Defines a couple of constants in the Makefile that are imported from
  104.        %Config.
  105.  
  106.      const_loadlibs (o)
  107.        Defines EXTRALIBS, LDLOADLIBS, BSLOADLIBS, LD_RUN_PATH. See the
  108.        _E_x_t_U_t_i_l_s::_L_i_b_l_i_s_t manpage for details.
  109.  
  110.      constants (o)
  111.        Initializes lots of constants and .SUFFIXES and .PHONY
  112.  
  113.      depend (o)
  114.        Same as macro for the depend attribute.
  115.  
  116.      dir_target (o)
  117.        Takes an array of directories that need to exist and returns a Makefile
  118.        entry for a .exists file in these directories. Returns nothing, if the
  119.        entry has already been processed. We're helpless though, if the same
  120.        directory comes as $(FOO) _and_ as "bar". Both of them get an entry,
  121.        that's why we use "::".
  122.  
  123.      dist (o)
  124.        Defines a lot of macros for distribution support.
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))
  137.  
  138.  
  139.  
  140.      dist_basics (o)
  141.        Defines the targets distclean, distcheck, skipcheck, manifest.
  142.  
  143.      dist_ci (o)
  144.        Defines a check in target for RCS.
  145.  
  146.      dist_core (o)
  147.        Defeines the targets dist, tardist, zipdist, uutardist, shdist
  148.  
  149.      dist_dir (o)
  150.        Defines the scratch directory target that will hold the distribution
  151.        before tar-ing (or shar-ing).
  152.  
  153.      dist_test (o)
  154.        Defines a target that produces the distribution in the
  155.        scratchdirectory, and runs 'perl Makefile.PL; make ;make test' in that
  156.        subdirectory.
  157.  
  158.      dlsyms (o)
  159.        Used by AIX and VMS to define DL_FUNCS and DL_VARS and write the *.exp
  160.        files.
  161.  
  162.      dynamic (o)
  163.        Defines the dynamic target.
  164.  
  165.      dynamic_bs (o)
  166.        Defines targets for bootstrap files.
  167.  
  168.      dynamic_lib (o)
  169.        Defines how to produce the *.so (or equivalent) files.
  170.  
  171.      exescan
  172.        Deprecated method. Use libscan instead.
  173.  
  174.      extliblist
  175.        Called by init_others, and calls ext ExtUtils::Liblist. See the
  176.        _E_x_t_U_t_i_l_s::_L_i_b_l_i_s_t manpage for details.
  177.  
  178.      file_name_is_absolute
  179.        Takes as argument a path and returns true, if it is an absolute path.
  180.  
  181.      find_perl
  182.        Finds the executables PERL and FULLPERL
  183.  
  184.      MMMMeeeetttthhhhooooddddssss ttttoooo aaaaccccttttuuuuaaaallllllllyyyy pppprrrroooodddduuuucccceeee cccchhhhuuuunnnnkkkkssss ooooffff tttteeeexxxxtttt ffffoooorrrr tttthhhheeee MMMMaaaakkkkeeeeffffiiiilllleeee
  185.  
  186.      The methods here are called for each MakeMaker object in the order
  187.      specified by @ExtUtils::MakeMaker::MM_Sections.
  188.  
  189.      fixin
  190.        Inserts the sharpbang or equivalent magic number to a script
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))
  203.  
  204.  
  205.  
  206.      force (o)
  207.        Just writes FORCE:
  208.  
  209.      guess_name
  210.        Guess the name of this package by examining the working directory's
  211.        name. MakeMaker calls this only if the developer has not supplied a
  212.        NAME attribute.
  213.  
  214.      has_link_code
  215.        Returns true if C, XS, MYEXTLIB or similar objects exist within this
  216.        object that need a compiler. Does not descend into subdirectories as
  217.        _n_e_e_d_s__l_i_n_k_i_n_g() does.
  218.  
  219.      init_dirscan
  220.        Initializes DIR, XS, PM, C, O_FILES, H, PL_FILES, MAN*PODS, EXE_FILES.
  221.  
  222.      init_main
  223.        Initializes NAME, FULLEXT, BASEEXT, PARENT_NAME, DLBASE, PERL_SRC,
  224.        PERL_LIB, PERL_ARCHLIB, PERL_INC, INSTALLDIRS, INST_*, INSTALL*,
  225.        PREFIX, CONFIG, AR, AR_STATIC_ARGS, LD, OBJ_EXT, LIB_EXT, EXE_EXT,
  226.        MAP_TARGET, LIBPERL_A, VERSION_FROM, VERSION, DISTNAME, VERSION_SYM.
  227.  
  228.      init_others
  229.        Initializes EXTRALIBS, BSLOADLIBS, LDLOADLIBS, LIBS, LD_RUN_PATH,
  230.        OBJECT, BOOTDEP, PERLMAINCC, LDFROM, LINKTYPE, NOOP, FIRST_MAKEFILE,
  231.        MAKEFILE, NOECHO, RM_F, RM_RF, TEST_F, TOUCH, CP, MV, CHMOD, UMASK_NULL
  232.  
  233.      install (o)
  234.        Defines the install target.
  235.  
  236.      installbin (o)
  237.        Defines targets to install EXE_FILES.
  238.  
  239.      libscan (o)
  240.        Takes a path to a file that is found by init_dirscan and returns false
  241.        if we don't want to include this file in the library. Mainly used to
  242.        exclude RCS, CVS, and SCCS directories from installation.
  243.  
  244.      linkext (o)
  245.        Defines the linkext target which in turn defines the LINKTYPE.
  246.  
  247.      lsdir
  248.        Takes as arguments a directory name and a regular expression. Returns
  249.        all entries in the directory that match the regular expression.
  250.  
  251.      macro (o)
  252.        Simple subroutine to insert the macros defined by the macro attribute
  253.        into the Makefile.
  254.  
  255.      makeaperl (o)
  256.        Called by staticmake. Defines how to write the Makefile to produce a
  257.        static new perl.
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))
  269.  
  270.  
  271.  
  272.        By default the Makefile produced includes all the static extensions in
  273.        the perl library. (Purified versions of library files, e.g.,
  274.        DynaLoader_pure_p1_c0_032.a are automatically ignored to avoid link
  275.        errors.)
  276.  
  277.      makefile (o)
  278.        Defines how to rewrite the Makefile.
  279.  
  280.      manifypods (o)
  281.        Defines targets and routines to translate the pods into manpages and
  282.        put them into the INST_* directories.
  283.  
  284.      maybe_command
  285.        Returns true, if the argument is likely to be a command.
  286.  
  287.      maybe_command_in_dirs
  288.        method under development. Not yet used. Ask Ilya :-)
  289.  
  290.      needs_linking (o)
  291.        Does this module need linking? Looks into subdirectory objects (see
  292.        also _h_a_s__l_i_n_k__c_o_d_e())
  293.  
  294.      nicetext
  295.        misnamed method (will have to be changed). The MM_Unix method just
  296.        returns the argument without further processing.
  297.  
  298.        On VMS used to insure that colons marking targets are preceded by space
  299.        - most Unix Makes don't need this, but it's necessary under VMS to
  300.        distinguish the target delimiter from a colon appearing as part of a
  301.        filespec.
  302.  
  303.      parse_version
  304.        parse a file and return what you think is $VERSION in this file set to
  305.  
  306.      pasthru (o)
  307.        Defines the string that is passed to recursive make calls in
  308.        subdirectories.
  309.  
  310.      path
  311.        Takes no argument, returns the environment variable PATH as an array.
  312.  
  313.      perl_script
  314.        Takes one argument, a file name, and returns the file name, if the
  315.        argument is likely to be a perl script. On MM_Unix this is true for any
  316.        ordinary, readable file.
  317.  
  318.      perldepend (o)
  319.        Defines the dependency from all *.h files that come with the perl
  320.        distribution.
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))
  335.  
  336.  
  337.  
  338.      pm_to_blib
  339.        Defines target that copies all files in the hash PM to their
  340.        destination and autosplits them. See the DESCRIPTION entry in the
  341.        _E_x_t_U_t_i_l_s::_I_n_s_t_a_l_l manpage
  342.  
  343.      post_constants (o)
  344.        Returns an empty string per default. Dedicated to overrides from within
  345.        Makefile.PL after all constants have been defined.
  346.  
  347.      post_initialize (o)
  348.        Returns an empty string per default. Used in Makefile.PLs to add some
  349.        chunk of text to the Makefile after the object is initialized.
  350.  
  351.      postamble (o)
  352.        Returns an empty string. Can be used in Makefile.PLs to write some text
  353.        to the Makefile at the end.
  354.  
  355.      prefixify
  356.        Check a path variable in $self from %Config, if it contains a prefix,
  357.        and replace it with another one.
  358.  
  359.        Takes as arguments an attribute name, a search prefix and a replacement
  360.        prefix. Changes the attribute in the object.
  361.  
  362.      processPL (o)
  363.        Defines targets to run *.PL files.
  364.  
  365.      realclean (o)
  366.        Defines the realclean target.
  367.  
  368.      replace_manpage_separator
  369.        Takes the name of a package, which may be a nested package, in the form
  370.        Foo/Bar and replaces the slash with ::. Returns the replacement.
  371.  
  372.      static (o)
  373.        Defines the static target.
  374.  
  375.      static_lib (o)
  376.        Defines how to produce the *.a (or equivalent) files.
  377.  
  378.      staticmake (o)
  379.        Calls makeaperl.
  380.  
  381.      subdir_x (o)
  382.        Helper subroutine for subdirs
  383.  
  384.      subdirs (o)
  385.        Defines targets to process subdirectories.
  386.  
  387.      test (o)
  388.        Defines the test targets.
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))
  401.  
  402.  
  403.  
  404.      test_via_harness (o)
  405.        Helper method to write the test targets
  406.  
  407.      test_via_script (o)
  408.        Other helper method for test.
  409.  
  410.      tool_autosplit (o)
  411.        Defines a simple perl call that runs autosplit. May be deprecated by
  412.        pm_to_blib soon.
  413.  
  414.      tools_other (o)
  415.        Defines SHELL, LD, TOUCH, CP, MV, RM_F, RM_RF, CHMOD, UMASK_NULL in the
  416.        Makefile. Also defines the perl programs MKPATH, WARN_IF_OLD_PACKLIST,
  417.        MOD_INSTALL. DOC_INSTALL, and UNINSTALL.
  418.  
  419.      tool_xsubpp (o)
  420.        Determines typemaps, xsubpp version, prototype behaviour.
  421.  
  422.      top_targets (o)
  423.        Defines the targets all, subdirs, config, and O_FILES
  424.  
  425.      writedoc
  426.        Obsolete, depecated method. Not used since Version 5.21.
  427.  
  428.      xs_c (o)
  429.        Defines the suffix rules to compile XS files to C.
  430.  
  431.      xs_o (o)
  432.        Defines suffix rules to go from XS to object files directly. This is
  433.        only intended for broken make implementations.
  434.  
  435.      perl_archive
  436.        This is internal method that returns path to libperl.a equivalent to be
  437.        linked to dynamic extensions. UNIX does not have one but OS2 and Win32
  438.        do.
  439.  
  440.      export_list
  441.        This is internal method that returns name of a file that is passed to
  442.        linker to define symbols to be exported.  UNIX does not have one but
  443.        OS2 and Win32 do.
  444.  
  445. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  446.      the _E_x_t_U_t_i_l_s::_M_a_k_e_M_a_k_e_r manpage
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::MMMMMMMM____UUUUnnnniiiixxxx((((3333))))
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.                                                                         PPPPaaaaggggeeee 8888
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.